﻿using System;
using DC2010.Objects.Base;
using DC2010.Objects.Structures;

namespace DC2010.Objects.Info
{
    [Serializable]
    public class LevelInfo : BaseInfo
    {
        public long RequiredExp { get; set; }   //required exp for this level
        
        /// <summary>
        /// "None",
        /// "Neophyte",
        /// "Novice",
        /// "Apprentice",
        /// "Journeyman",
        /// "Craftsman",
        /// "Artisan",
        /// "Adept",
        /// "Expert",
        /// "LO Master",
        /// "UM Master",
        /// "ON Master",
        /// "EE Master",
        /// "PAL Master",
        /// "MON Master",
        /// ...etc
        /// "ArchMaster" };
        /// </summary>
        public string LevelName { get; set; }

        public int LevelId { get; set; }


        public LevelData CreateData()
        {
            LevelData id = new LevelData();

            id.InfoId = Id;
            id.Id = id.InfoId + "_" + Guid.NewGuid().ToString();
            //TODO: fill with other properties
            Root.log.InfoFormat("Core, Created new object with id: {0} based on object {1}", id.Id, id.InfoId);
            //Root.I.LevelSystem.AddData(id);



            return id;
        }
    }
}
